package extend.super关键字;

public class One {
    public One() {
        System.out.println("One类无参构造");
    }
}

class Two extends One {
//    public Two() {
//        System.out.println("Two类无参构造");
//    }
    public Two(int a) {
        System.out.println("Two类无参构造，a="+a);
    }
}

class Three extends Two {
    public Three() {
        super(1);//默认super失效
        System.out.println("Three类无参构造");
    }

    public static void main(String[] args) {
        Three three = new Three();
    }
}
